package com.github.codemperor.core.retry.bean;

public class RetryResult {
    /**
     * 执行第几次
     */
    private Integer number;
    /**
     * 是否执行成功
     */
    private boolean success;
    /**
     * 报错异常
     */
    private Exception ex;

    /**
     * 执行毫秒数
     */
    private Long millisecond;

    /**
     * 延时毫秒数, 用于计算真实业务耗费多少秒。(millisecond - millisecondDelay)
     */
    private Long millisecondDelay;

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Exception getEx() {
        return ex;
    }

    public void setEx(Exception ex) {
        this.ex = ex;
    }

    public Long getMillisecond() {
        return millisecond;
    }

    public void setMillisecond(Long millisecond) {
        this.millisecond = millisecond;
    }

    public boolean isSuccess() {
        return success;
    }

    public Long getMillisecondDelay() {
        return millisecondDelay;
    }

    public void setMillisecondDelay(Long millisecondDelay) {
        this.millisecondDelay = millisecondDelay;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }
}
